<%--
  Created by IntelliJ IDEA.
  User: 97203
  Date: 2018/06/08
  Time: 15:05
  To change this ttasklate use File | Settings | File Tcptlates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/compensation.js"></script>
</head>
<body>
<table id="cpt_datagrid"></table>
<div id="tb">
    <div>
        姓名查询:<input name="keyword" class="easyui-textbox" prompt="请输入用户名">
        部门查询:<input name="deptId" class="easyui-combobox" prompt="请选择" fit="true"
               data-options="textField:'name',valueField:'id',panelHeight:'auto',
                                url:'/department/selectAll.do'">
        日期:<input id="beginTime" name="beginTime" class="easyui-datebox"  prompt="请输入开始日期">~
        <input id="endTime" name="endTime" class="easyui-datebox"  prompt="请输入结束日期">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query">查询</a>
    </div>

    <%--<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="add">新增薪资</a>--%>
    <a id="edit_btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑薪资</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新任务</a>
    <shiro:hasPermission name="taskloyee:changeState">
        <a href="#" id="changeState_btn" class="easyui-linkbutton" data-options="iconCls:'icon-man',plain:true"
           data-cmd="changeState">离职</a>
    </shiro:hasPermission>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:true" data-cmd="exportXls">导出</a>
    <%--<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" data-cmd="importXls">导入</a>--%>

    <div id="import_dialog">
        <form id="import_form" method="post" enctype="multipart/form-data" action="/cptloyee/importXls.do">
            <table>
                <tr>
                    <td><input type="file" name="file" id="file"></td>
                    <td><input type="button" value="导入" onclick="fileSubmit()"></td>
                </tr>
            </table>
        </form>
    </div>

</div>
<div id="cpt_dialog">
    <form id="cpt_form" method="post">
        <input id="cptId" name="id" type="hidden">
        <table align="center" style="margin: 15px;">
            <tr>
                <td>姓名：</td>
                <td><input type="text" name="employee.username" class="easyui-textbox" readonly ></td>
            </tr>
            <tr>
                <td>部门：</td>
                <td><input type="text" name="dept.name" class="easyui-textbox" readonly></td>
            </tr>
            <tr>
                <td>联系电话：</td>
                <td><input type="text" name="employee.tel" class="easyui-textbox" readonly></td>
            </tr>
            <tr>
                <td>邮箱：</td>
                <td><input type="text" name="employee.email" class="easyui-textbox" readonly></td>
            </tr>
            <tr>
                <td>日期：</td>
                <td><input type="text" name="date" class="easyui-datebox"></td>
            </tr>
            <tr>
                <td>基本工资：</td>
                <td><input id="basicMoney" type="text" name="basicMoney" class="easyui-numberbox"
                        onblur="getbasicMoney()"></td>
            </tr>
            <tr>
                <td>奖金：</td>
                <td><input id="bonus" type="text" name="bonus" class="easyui-numberbox"
                            onblur="getbonus()"></td>
            </tr>
            <tr>
                <td>总薪资：</td>
                <td><input id="sumMoney" type="text" name="sumMoney" class="easyui-numberbox" readonly></td>
            </tr>

            <div id="btn">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true"
                   data-cmd="save">保存</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
            </div>
        </table>
    </form>
</div>
</body>
</html>
